import { GET_NAV_EXPAND_INFO } from './action'

export const NavExpandInfo = (preState = false, action) => {
    const { type, payload } = action
    switch (type) {
        case GET_NAV_EXPAND_INFO:
            return payload
        default:
            return preState
    }
}